﻿#region Regions

using System;

using FMWare.Core.Base;

#endregion

namespace FMWare.Core.Translations
{
	public class Club : Item
	{
		#region Public Properties

		public String Name { get; set; }
		public Byte NameGender { get; set; }
		public String NickName { get; set; }
		public String NickName2 { get; set; }
		public Byte NickName2Gender { get; set; }
		public Byte NickNameGender { get; set; }
		public String ShortName { get; set; }
		public Byte ShortNameGender { get; set; }
		public String SixLetterName { get; set; }

		#endregion

		#region Internal Properties

		internal override string ExportData
		{
			get { return Global.CreateDelimitedString(UniqueId, Name, ShortName, SixLetterName, NickName, NickName2); }
		}

		#endregion

		#region Internal Methods

		internal override void Read(BinaryReader reader)
		{
			UniqueId = reader.ReadInt32();
			Name = reader.ReadString();
			NameGender = reader.ReadByte();
			ShortName = reader.ReadString();
			ShortNameGender = reader.ReadByte();
			SixLetterName = reader.ReadString();
			NickNameGender = reader.ReadByte();
			NickName = reader.ReadString();
			NickName2Gender = reader.ReadByte();
			NickName2 = reader.ReadString();
		}

		internal override void Write(BinaryWriter writer)
		{
			writer.Write(UniqueId);
			writer.Write(Name);
			writer.Write(NameGender);
			writer.Write(ShortName);
			writer.Write(ShortNameGender);
			writer.Write(SixLetterName);
			writer.Write(NickNameGender);
			writer.Write(NickName);
			writer.Write(NickName2Gender);
			writer.Write(NickName2);
		}

		#endregion
	}
}